<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'jadwal-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
	// 'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

<?php echo $form->textFieldRow($model,'id',array('class'=>'span5')); ?>
<?php echo  '';
			$dataInstruktur = Instruktur::model()->findAll(array('order' => 'nama_instruktur'));
		    $listInstruktur = CHtml::listData($dataInstruktur,'id', 'nama_instruktur');
		    echo $form->select2Row($model, 'tb_instruktur_id', array(
			   'data' => $listInstruktur,

			))
			; ?>
<?php echo  '';
			$dataKelas = Kelas::model()->findAll(array('order' => 'nama_kelas'));
		    $listKelas = CHtml::listData($dataKelas,'id', 'nama_kelas');
		    echo $form->select2Row($model, 'tb_kelas_id', array(
			   'data' => $listKelas,

			))
			; ?>
<?php echo $form->textFieldRow($model,'nama_jadwal',array('class'=>'span5','maxlength'=>100)); ?>
<?php echo $form->textFieldRow($model,'jam_belajar',array('class'=>'span5','maxlength'=>40)); ?>


<div class="form-actions">
	<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
</div>

<?php $this->endWidget(); ?>
